<?php

/**
 * This is NOT a freeware, use is subject to license terms
 * 
 *       $Id: changelog.inc.php 2012-10-11 14:46:59Z zhugeyun $
 */

if(!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
    exit('Access Denied');
}
define('STUDYADDONS_FEEDBACK_URL', 'http://addon.1314study.com/changelog/index.php');
require_once DISCUZ_ROOT . './source/discuz_version.php';
$data = 'pid=' . $plugin[identifier] . '&siteurl=' . rawurlencode($_G['siteurl']) . '&sitever=' . DISCUZ_VERSION . '/' . DISCUZ_RELEASE . '&sitecharset=' . CHARSET . '&pversion=' . rawurlencode($plugin[version]);
$param = 'data=' . rawurlencode(base64_encode($data));
$param .= '&md5hash=' . substr(md5($data . TIMESTAMP), 8, 8) . '&timestamp=' . TIMESTAMP;

echo '<script type="text/javascript">location.href="' . STUDYADDONS_FEEDBACK_URL . '?' . $param . '";</script>';

?>
